package com.entity;

import java.io.Serializable;

/**
 * indept
 * @author 
 */
public class Indept implements Serializable {
    private Integer indeptid;

    private String indeptname;

    private static final long serialVersionUID = 1L;

    public Integer getIndeptid() {
        return indeptid;
    }

    public void setIndeptid(Integer indeptid) {
        this.indeptid = indeptid;
    }

    public String getIndeptname() {
        return indeptname;
    }

    public void setIndeptname(String indeptname) {
        this.indeptname = indeptname;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Indept other = (Indept) that;
        return (this.getIndeptid() == null ? other.getIndeptid() == null : this.getIndeptid().equals(other.getIndeptid()))
            && (this.getIndeptname() == null ? other.getIndeptname() == null : this.getIndeptname().equals(other.getIndeptname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIndeptid() == null) ? 0 : getIndeptid().hashCode());
        result = prime * result + ((getIndeptname() == null) ? 0 : getIndeptname().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", indeptid=").append(indeptid);
        sb.append(", indeptname=").append(indeptname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}